﻿@model Home.Site.Models.Account.UserProfile

@{
    ViewBag.Title = ViewBag.Messaeg;
}
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Профиль пользователя</legend>

        @Html.HiddenFor(model => model.UserId)
        @Html.HiddenFor(model => model.UserName)
        <div class="editor-label">
            @Html.LabelFor(model => model.LastName,"Фамилия")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LastName)
            @Html.ValidationMessageFor(model => model.LastName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.ShowName,"Отображаемое имя")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ShowName)
            @Html.ValidationMessageFor(model => model.ShowName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Email,"Почта")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Gravatar,"Граватар")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Gravatar)
            @Html.ValidationMessageFor(model => model.Gravatar)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Other,"Описание")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Other)
            @Html.ValidationMessageFor(model => model.Other)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.RegistrationTime,"Время регистрации")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RegistrationTime)
            @Html.ValidationMessageFor(model => model.RegistrationTime)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsRoot)
            @Html.ValidationMessageFor(model => model.IsRoot)
            @Html.LabelFor(model => model.IsRoot,new {@class="inline"})
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsAdmin)
            @Html.ValidationMessageFor(model => model.IsAdmin)
            @Html.LabelFor(model => model.IsAdmin,new {@class="inline"})
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsOperator)
            @Html.ValidationMessageFor(model => model.IsOperator)
            @Html.LabelFor(model => model.IsOperator,new {@class="inline"})
        </div>
        <br/>
        <p>
            <input class="btn btn-primary" type="submit" value="Сохранить" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Назад", "AllUsers")
</div>
